﻿using UnityEngine;
using System.Collections;
using Space2D_Core;
using Space2D_Utils;

public class PhysicalObjectRenderer : MonoBehaviour
{
	public void Init (PhysicalObject obj)
	{
		m_obj = obj;

		transform.localScale = new UnityEngine.Vector3((float)m_sizeX, (float)m_sizeY, 1.0f);
		m_obj.SetSize(m_sizeX / 2.0, m_sizeY / 2.0);
	}
	
	public void DeInit ()
	{
		m_obj = null;
	}
	
	public void Tick ()
	{
	
	}

	[SerializeField]
	private double m_sizeX = 1.0f;
	[SerializeField]
	private double m_sizeY = 1.0f;

	private PhysicalObject m_obj = null;
}
